layui.define(['layer', 'jquery'], function(exports) {
	var layer = layui.layer,
		$ = layui.jquery,
		element = layui.element,
		form = layui.form;
	var obj = {
		skin: function() {
			$(".skin-block ul li").click(function() {
				var theme = $(this).attr("data-skin");
				layui.data("skin",{
					key:"skin-theme",
					value:theme
				});
				$(parent.document).find("#left-nav").css("background-color",theme);
				$(parent.document).find("#header .logo").css("background-color",theme);
			});
		}
	}
	exports('skin', obj); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
});